package org.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.domain.Sell;
import org.example.domain.TakePosition;

import java.util.List;

/**
 * @author scf
 * @description 针对表【take_position】的数据库操作Service
 * @createDate 2024-06-21 09:53:44
 */
public interface TakePositionService extends IService<TakePosition> {

    String buy(TakePosition takePosition, Integer userId);

    List<TakePosition> listall(Integer userId, Integer stockId);

    String buyorThree(TakePosition takePosition, Integer userId, String volumeCode);

    TakePosition getOneByVolumeCode(String volumeCode);

    void TCPClient(Sell sell);
}
